package com.changgou.pojo;

import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

import java.util.Date;

/**
 * @Project: com.changgou.pojo
 * @Author: ShaoDi Wang
 * @Date: Created in 2019-08-11 20:44
 * @Description:
 * @Version: 1.0
 */
@Document(collection = "sku_comment")
public class SkuComment {

    @Field("shopId")
    private String shopId = "";

    @Field("spuId")
    private String spuId = "";

    @Field("username")
    private String userName = "";

    @Field("orderId")
    private String orderId = "";

    @Field("createTime")
    private Date createTime = new Date();

    @Field("skuId")
    private String skuId = "";

    @Field("commentInfo")
    private String commentInfo = "";

    @Field("imgUrl")
    private String imgUrl = "";

    @Field("anonymous")
    private Boolean anonymous = false;

    @Field("scores")
    private Score scores;

    public String getSpuId() {
        return spuId;
    }

    public void setSpuId(String spuId) {
        this.spuId = spuId;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getSkuId() {
        return skuId;
    }

    public void setSkuId(String skuId) {
        this.skuId = skuId;
    }

    public String getCommentInfo() {
        return commentInfo;
    }

    public void setCommentInfo(String commentInfo) {
        this.commentInfo = commentInfo;
    }

    public String getImgUrl() {
        return imgUrl;
    }

    public void setImgUrl(String imgUrl) {
        this.imgUrl = imgUrl;
    }

    public Boolean getAnonymous() {
        return anonymous;
    }

    public void setAnonymous(Boolean anonymous) {
        this.anonymous = anonymous;
    }

    public Score getScores() {
        return scores;
    }

    public void setScores(Score scores) {
        this.scores = scores;
    }
}
